package com.kaoker.system.dao.impl;

import java.util.List;

import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

import com.kaoker.system.dao.IExamPointDao;
import com.kaoker.system.entity.ExamPoint;
import com.kaoker.system.entity.Exercise;
import com.kaoker.system.entity.KeyNotePoint;

public class ExamPointDao extends HibernateDaoSupport implements IExamPointDao {

	@Override
	public void addExamPoint(ExamPoint examPoint) {
		 this.getHibernateTemplate().save(examPoint);
	}

	@Override
	public void deleteExamPoint(ExamPoint examPoint) {
		 this.getHibernateTemplate().delete(examPoint);
	}

	//@Override
	public List<KeyNotePoint> getReferKeyNotePoints(ExamPoint keyNotePoint) {
		// TODO Auto-generated method stub
		return null;
	}

	//@Override
	public List<ExamPoint> getReferExamPoints(ExamPoint keyNotePoint) {
		// TODO Auto-generated method stub
		return null;
	}

	//@Override
	public List<Exercise> getReferExercises(ExamPoint keyNotePoint) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public void updateExamPoint(ExamPoint examPoint) {
		 this.getHibernateTemplate().update(examPoint);
	}

	@Override
	public void getExamPoint(Long id) {
		 this.getHibernateTemplate().load(ExamPoint.class, id);
	}

}
